<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      background-color: #000;
    }
    .main {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      width: 200px;
      animation: rotate 3s ease-in-out infinite;
    }
    .part {
      width: 90px;
      height: 90px;
      margin: 5px;
      animation: scale 1.5s linear infinite;
    }
    .part:nth-child(1) {
      border-radius: 50% 50% 0% 50%;
      background-color: lightblue;
    }
    .part:nth-child(2) {
      border-radius: 50% 50% 50% 0%;
      background-color: tomato;
    }
    .part:nth-child(3) {
      border-radius: 50% 0% 50% 50%;
      background-color: yellow;
    }
    .part:nth-child(4) {
      border-radius: 0% 50% 50% 50%;
      background-color: purple;
    }

    @keyframes rotate{
      to {
        transform: rotate(360deg);
      }
    }
    @keyframes scale {
      50% {
        transform: scale(1.01);
      }
    }
  </style>
</head>
<body>
  <div class="main">
    <div class="part"></div>
    <div class="part"></div>
    <div class="part"></div>
    <div class="part"></div>
  </div>
</body>
</html>